package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 故障条件对象 sys_error_conditions
 * 
 * @author ruoyi
 * @date 2022-05-11
 */
public class SysErrorConditions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long conId;

    /** 故障id */
    @Excel(name = "故障id")
    private Long errorId;

    /** 故障码 */
    @Excel(name = "故障码")
    private String errorCode;

    /** 条件类型 0:先决条件，1:判断条件 */
    @Excel(name = "条件类型 0:先决条件，1:判断条件")
    private Long conType;

    /** 条件所需字段1 */
    @Excel(name = "条件所需字段1")
    private String field1;

    /** 操作符1 */
    @Excel(name = "操作符1")
    private String operation1;

    /** 条件对应字段1 */
    @Excel(name = "条件对应字段1")
    private BigDecimal value1;

    /** 条件所需字段2 */
    @Excel(name = "条件所需字段2")
    private String field2;

    /** 操作符2 */
    @Excel(name = "操作符2")
    private String operation2;

    /** 条件对应字段2 */
    @Excel(name = "条件对应字段2")
    private BigDecimal value2;

    /** 异常信息 */
    @Excel(name = "异常信息")
    private String errorInfo;

    /** 异常可能原因 */
    @Excel(name = "异常可能原因")
    private String errorReason;

    public void setConId(Long conId) 
    {
        this.conId = conId;
    }

    public Long getConId() 
    {
        return conId;
    }
    public void setErrorId(Long errorId) 
    {
        this.errorId = errorId;
    }

    public Long getErrorId() 
    {
        return errorId;
    }
    public void setErrorCode(String errorCode) 
    {
        this.errorCode = errorCode;
    }

    public String getErrorCode() 
    {
        return errorCode;
    }
    public void setConType(Long conType) 
    {
        this.conType = conType;
    }

    public Long getConType() 
    {
        return conType;
    }
    public void setField1(String field1) 
    {
        this.field1 = field1;
    }

    public String getField1() 
    {
        return field1;
    }
    public void setOperation1(String operation1) 
    {
        this.operation1 = operation1;
    }

    public String getOperation1() 
    {
        return operation1;
    }
    public void setValue1(BigDecimal value1) 
    {
        this.value1 = value1;
    }

    public BigDecimal getValue1() 
    {
        return value1;
    }
    public void setField2(String field2) 
    {
        this.field2 = field2;
    }

    public String getField2() 
    {
        return field2;
    }
    public void setOperation2(String operation2) 
    {
        this.operation2 = operation2;
    }

    public String getOperation2() 
    {
        return operation2;
    }
    public void setValue2(BigDecimal value2) 
    {
        this.value2 = value2;
    }

    public BigDecimal getValue2() 
    {
        return value2;
    }
    public void setErrorInfo(String errorInfo) 
    {
        this.errorInfo = errorInfo;
    }

    public String getErrorInfo() 
    {
        return errorInfo;
    }
    public void setErrorReason(String errorReason) 
    {
        this.errorReason = errorReason;
    }

    public String getErrorReason() 
    {
        return errorReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("conId", getConId())
            .append("errorId", getErrorId())
            .append("errorCode", getErrorCode())
            .append("conType", getConType())
            .append("field1", getField1())
            .append("operation1", getOperation1())
            .append("value1", getValue1())
            .append("field2", getField2())
            .append("operation2", getOperation2())
            .append("value2", getValue2())
            .append("errorInfo", getErrorInfo())
            .append("errorReason", getErrorReason())
            .toString();
    }
}
